﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace ModelLayer
{
     [KnownType(typeof(List<Seat>))]
     [DataContract(IsReference=false)]
     public class ShowRoom
    {
        private int roomNumber;
        private string col;
        private string row;
        //private List<Seat> seats;

        public ShowRoom(int roomNumber, string col, string row)
        {
            this.roomNumber = roomNumber;
            this.col = col;
            this.row = row;
            //this.seats = new List<Seat>();
        }

        #region Getters and Setters
         [DataMember]
        public int RoomNumber
        {
            get { return roomNumber; }
            set { roomNumber = value; }
        }
         [DataMember]
        public string Col 
        {
            get { return col; }
            set { col = value; } 
        }
         [DataMember]
        public string Row
        {
            get { return row; }
            set { row = value; }
        }
         //[DataMember]
         //public List<Seat> Seats
         //{
         //    get { return seats; }
         //    //set { seats.Add(value); } ???
         //}
        #endregion


    }
}
